package net.qhzw.vip.qiyu.util;

import net.qhzw.vip.qiyu.handler.ApiException;
import net.qhzw.vip.qiyu.result.IErrorCode;

/***
 * 断言处理类，用于抛出各种API异常
 */
public class Asserts {

    public static void fail(String message) {
        throw new ApiException(message);
    }

    public static void fail(IErrorCode errorCode) {
        throw new ApiException(errorCode);
    }

}
